<?php
import('~ar.AR');
class ARFactory
{
	protected static $ar;
	
	public static function create($config)
	{
		return (ARFactory::$ar) ? ARFactory::$ar : new AR($config);
	}
	
	public static function newOne($config)
	{
		return new AR($config);
	}
}
?>